package com.ruoyi.project.digital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.project.digital.domain.dto.PetAnnexDto;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.List;

/**
 * 宠物附件对象 pet_annex
 *
 * @author ruoyi
 * @date 2023-12-18
 */
@TableName("pet_annex")
@Data
public class PetAnnex extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String fileUrl;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String fileName;


    @TableField(exist = false)
    private String petName;

   @TableField(exist = false)
   private List<PetAnnexDto> petAnnexDtoList;

    /** 宠物id */
    @Excel(name = "宠物id")
    private Long petId;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    public void setFileUrl(String fileUrl)
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl()
    {
        return fileUrl;
    }
    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }
    public void setPetId(Long petId)
    {
        this.petId = petId;
    }

    public Long getPetId()
    {
        return petId;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fileUrl", getFileUrl())
            .append("fileName", getFileName())
            .append("petId", getPetId())
            .append("id", getId())
            .toString();
    }
}
